Contains a library of standard mouse cursors.
Notes
The Cursors object contains a library of standard mouse cursors that you can access by calling System.Cursors.MouseCursorName, where MouseCursorName is one of the following:
MouseCursorName | Description |
|---|---|
ArrowAllDirections |
This is a set of four arrows pointing in both the North/South and East/West dimensions. It is typically used when moving objects on Windows. |
ArrowEastWest |
A pair of arrows pointing in the East and West directions. It is typically used when resizing something horizontally. |
ArrowNortheastSouthwest |
A pair of arrows pointing Northeast and Southwest directions. It is typically used when resizing something in this diagonal direction. |
ArrowNorthSouth |
A pair of arrows pointing North and South. It is typically used when resizing something vertically. |
ArrowNorthwestSoutheast |
A pair of arrows pointing in the Northwest and Southeast directions. It is typically used when resizing something in this diagonal direction. |
FingerPointer |
This cursor shows one finger pointing up indicating the presence of a hyperlink. |
HandClosed |
This cursor is typically used in conjunction with the HandOpen cursor to indicate that something has been "grabbed" and the drag is taking place. |
HandOpen |
This is the open hand cursor that is typically used to indicate that something can be "grabbed." |
IBeam |
The text insertion cursor that indicates that text can be entered into the object. |
InvisibleCursor |
An invisible cursor. |
MagnifyLarger |
A magnifying class cursor with a plus sign in the glass area. |
MagnifySmaller |
A magnifying glass cursor with a minus sign in the glass area. |
SplitterEastWest |
A pair of arrows pointing East and West with a vertical bar between them. This is typically used when dragging a vertical splitter control. |
SplitterNorthSouth |
A pair of arrows pointing North and South with a horizontal bar between them. This is typically used when dragging a horizontal splitter control. |
StandardPointer |
The standard system "arrow" cursor that is used for normal operations. You can use this in place of the global function ArrowCursor. |
Wait |
The system "wait" cursor that is used when a long operation is in progress and you cannot provide other feedback. |
Example
The following line in the MouseDown event of a Canvas changes the cursor to the HandClosed cursor.
The following line in the MouseEnter event hides the cursor.
See Also
MouseCursor class; System object.